<?php

namespace App\Http\Models;
//用户放单审核权限申请
class UserSubmitAudit extends BaseModel
{
    protected $table = 'user_submit_audit';

    //对应商品表
    public function user()
    {
        return $this->belongsTo(User::class, 'uid');
    }

    /*public function setStateAttribute($state)
    {
        $this->attributes['state'] = $state == 'on' ? 1 : ($state == 'off' ? 0 : $state);
    }*/
}